package mfuny.ggongal.admin;

import javax.servlet.http.HttpServletRequest;

import mfuny.ggongal.admin.report.LoginReportService;
import mfuny.ggongal.admin.report.PvService;
import mfuny.ggongal.admin.report.ReportService;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class ReportController {
	ReportService r;
	LoginReportService lReport;
	PvService pv;
	
	public ReportController() throws Exception {
		lReport = new LoginReportService();
		pv = new PvService();
		r = new ReportService();
	}
	
	@RequestMapping("/loginReport.ga")
	public ModelAndView loginReport() throws Exception {
		return lReport.loginReport( );
	}
	
	@RequestMapping("/loginReportDaySearch.ga")
	public ModelAndView loginReportDaySearch(HttpServletRequest request) throws Exception {
		return lReport.loginReportDaySearch( request );
	}
	
	@RequestMapping("/loginReportTimeSearch.ga")
	public ModelAndView loginReportTimeSearch(HttpServletRequest request) throws Exception {
		return lReport.loginReportTimeSearch( request );
	}
	
	@RequestMapping("/pvReport.ga")
	public ModelAndView pvReport() throws Exception {
		return pv.pvReport( );
	}
	
	@RequestMapping("/selectAdNoPopup.ga")
	public ModelAndView selectAdNoPopup(String co_id) throws Exception {
		return pv.selectAdNoPopup( co_id );
	}
	
	@RequestMapping("/pvReport_detail.ga")
	public ModelAndView pvReport_detail(int ad_no) throws Exception {
		return pv.pvReport_detail(ad_no);
	}
	
	@RequestMapping("/reportForDay.ga")
	public ModelAndView reportForDay() throws Exception {
		return pv.reportForDay();
	}
	
	
	@RequestMapping("/tempDayReportForm.ga")
	public ModelAndView tempDayReportForm() throws Exception {
		return r.tempDayReportForm();
	}
	
	@RequestMapping("/tempDayReport.ga")
	public ModelAndView tempDayReport(String days) throws Exception {
		return r.tempDayReport(days);
	}
}
